package com.songlei.rtcadriondh265demo.utils

/**
 * WebRTC 统计信息数据类
 * @param bandwidth 带宽 (kbps)
 * @param rtt 往返延迟 (ms)
 * @param packetLoss 丢包率 (%)
 * @param width 视频宽度
 * @param height 视频高度
 */
data class WebRTCStats(
    var bandwidth: Long = 0,
    var rtt: Int = 0,
    var packetLoss: Int = 0,
    var width: Int = 0,
    var height: Int = 0,
    var fps: Int = 0,
    var jitter: Int =0, //抖动（以秒为单位）
    var videoMimeType: String = "Unknown",
    var audioMimeType: String = "Unknown",
    var videoHardwareCodec: String = "Unknown", // 新增硬件视频编解码器名字
    var audioHardwareCodec: String = "Unknown",  // 新增硬件音频编解码器名字
    var packetLossRatio: Float = 0f,    // 总丢包率
    var videoPacketLoss: Float = 0f,   // 视频专用
    var audioPacketLoss: Float = 0f,   // 音频专用
    // 发送端间接指标
    var retransmitRatio: Float = 0f,   // 重传率%
    var nackCount: Int = 0           // NACK 计数

)